PEShowPrintControls

Use PEShowPrintControls to display the print controls (First, Previous, Next, and Last Page buttons as well as the buttons for Cancel, Close, Export, and Print to Printer). Use this call any time you want to provide control over whether print controls are displayed or not.

C Syntax
BOOL CRPE_API PEShowPrintControls (
        short printJob,
        BOOL showPrintControls );
Parameters

printJob

Specifies the print job for which you want to toggle the display of print controls.

showPrint
Controls

Boolean value indicates whether or not the print controls are displayed. TRUE will cause the print controls to be displayed; FALSE will hide the print controls.

Returns
Remarks

Print controls are displayed by default. It is not necessary to use this function simply to display controls but only if you want the user to control whether or not the controls are visible.

VB Syntax

VB Sample Code for Previewing a Report

Declare Function PEShowPrintControls Lib "crpe32.dll" (
    ByVal printJob As Integer, ByVal ShowPrintControls As Integer ) As Integer
Delphi Syntax
function PEShowPrintControls (
    printJob: Word;
    showPrintControls: Bool
    ): Bool stdcall;
dBASE for Windows Syntax

EXTERN CLOGICAL PEShowPrintControls (CWORD, CLOGICAL) CRPE.DLL



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com